package com.demo.applicationlistener.eventlistener.myevent;

import javax.servlet.http.HttpServletRequest;

import org.springframework.context.ApplicationEvent;

import com.demo.applicationlistener.eventlistener.domain.Halo;

public class HaloEvent extends ApplicationEvent {

	private static final long serialVersionUID = 3013576431042434314L;

	private Halo halo;
	
	private HttpServletRequest request;

	public HaloEvent(Object source) {
		super(source);
	}

	public HaloEvent(Object source,HttpServletRequest request, Halo halo) {
		super(source);
		this.request=request;
		this.halo = halo;
	}

	public Halo getHalo() {
		return halo;
	}
	public HttpServletRequest getRequest() {
		return request;
	}

	@Override
	public String toString() {
		return "HaloEvent [halo=" + halo + ", request=" + request + "]";
	}

	
}
